package org.ycb.ycbisgod.ycbwoxihuanni.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.ycb.ycbisgod.ycbwoxihuanni.dto.InfoDTO;
import org.ycb.ycbisgod.ycbwoxihuanni.entity.User;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;


public interface UserMapper extends BaseMapper<User> {


    User findByUsername(String username);

    /**
     * 根据用户名查询数据
     * @param userName 用户名
     * @return 对应用户密码
     */
    User getUserInfo(String userName);

    /**
     * 根据用户名修改信息
     * @param user
     * @return 修改的行数
     */
    int setUserInfo(User user);
}
